import { postRequest, getRequest } from '/@/lib/axios';

export const historyOptimizationRecordApi = {
  page (param: any) {
    return postRequest('/eapi/tbDistributionOpt/findByPage', param);
  },
  add (param: any) {
    return postRequest('/eapi/tbDistributionOpt/insertOne', param);
  },
  update (param: any) {
    return postRequest('/eapi/tbDistributionOpt/update', param);
  },
  delete (id: any) {
    return getRequest('/eapi/tbDistributionOpt/delete?id=' + id, null);
  },
  deleteOneById (id: any) {
    return postRequest('/eapi/tbDistributionOpt/deleteOneById', { id });
  },
  findLoadDistributionCurveData (param: any) {
    return postRequest('/eapi/optimize/findLoadDistributionCurveData', param);
  }
};

